* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}
a{
    text-decoration: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.balance {
    font-size: 1.8rem;
    margin-top: 20px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
}

.positive {
    color: #4CAF50;
}

.negative {
    color: #F44336;
}

.card {
    padding: 25px;
    margin: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #4b6cb7;
    outline: none;
}

button {
    background: #4b6cb7;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

button:hover {
    background: #3a5ba0;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background: #e0e0e0;
    color: #555;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #4b6cb7;
    color: white;
}

.transaction-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.transaction-item:hover {
    background: #f9f9f9;
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.transaction-meta {
    display: flex;
    gap: 15px;
    color: #777;
    font-size: 0.9rem;
}

.income {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1rem;
}

.expense {
    color: #F44336;
    font-weight: bold;
    font-size: 1.1rem;
}

.transaction-actions {
    display: flex;
    gap: 10px;
}

.delete-btn {
    background: #f8d7da;
    color: #721c24;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.delete-btn:hover {
    background: #f5c6cb;
}

.no-transactions {
    text-align: center;
    padding: 30px;
    color: #777;
}

@media (max-width: 600px) {
    form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}